package com.ls.blog.service;

import com.ls.blog.dto.*;
import com.ls.blog.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ls.blog.vo.PageVO;
import com.ls.blog.vo.UserVO;

import java.io.UnsupportedEncodingException;
import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author lishun
 * @since 2022-01-14
 */
public interface UserService extends IService<User> {

    /**
     * 根据用户名查找用户
     */
    UserDetailsIml getUserDTOByUserName(String userName);


    /**
     * 后台用户列表
     */
    Recodes<UserDTO> userDTOList(PageVO pageVO);

    /**
     * 修改用户角色
     */
    void editRole(UserVO userVO);


    AboutDTO about();

    /**
     * 发送邮件
     * @param userVO
     */
    String getValidCode(UserVO userVO);

    /**
     * 用户注册
     * @param userVO
     */
    void register(UserVO userVO);

    String pub();

    void setPub(String content) throws UnsupportedEncodingException;

    SiteDTO siteInfo();

    /**
     * 用户分布
     * @return
     */
    Map<String,Integer> userMap();

    Object music();

    Object loadUserByPhoneNum(long parseLong);
}
